<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of addForm
 *
 * @author Admin
 */
class Application_Form_cabinet_AddForm extends Zend_Form {

    public function __construct($options = null) {
        parent::__construct($options);

        $cabinetName = new Zend_Form_Element_Text('cabinetName');
        $cabinetName->addFilter('StripTags')
                ->addFilter('StringTrim')
                ->setRequired(true)
                ->setAttrib('class', 'text ui-corner-all')
                ->setDecorators(array('ViewHelper', 'Errors'));

        $status = new Zend_Form_Element_Select('status');
        $status->addMultiOption('active', ' Active')
                ->addMultiOption('inactive', ' Inactive')
                ->setSeparator("")
                ->setValue('active')
                ->setAttrib('class', 'select ui-corner-all')
                ->setDecorators(array('ViewHelper', 'Errors'));


        $this->addElements(array($cabinetName, $status));
    }

}